import React, { Component } from 'react'

export default class Child extends Component {
    constructor(props){
        super(props)
        this.state = {}
        console.log('constructor child')
    }
    static getDerivedStateFromProps(){
        console.log('getDerivedStateFromProps')
        return {}
    }
    shouldComponentUpdate(){
        console.log('shouldComponentUpdate')
        return true
    }
    componentDidUpdate(){
        console.log('componentDidUpdate')
    }
    componentDidMount(){
        console.log('componentDidMount child')
    }
    render() {
        return (
            <div>
                child
            </div>
        )
    }
}
